]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Stop using WindowPreview.realWindow in the overview
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 8 Jun 2020 07:50:41 +0000 (09:50 +0200)
committerJonas Dreßler <verdre@v0yd.nl>
Tue, 16 Jun 2020 12:10:01 +0000 (14:10 +0200)
commit46600740fedd6da7344d4693fb8b0721ef063d0c
tree1131f0c2736d4efd31e2958d2ccd96ef5ce04065
parentc281e868a07d5a9a9d241a0efa929f026657c258
workspace: Stop using WindowPreview.realWindow in the overview

We can simply get the MetaWindowActor by calling
MetaWindow.get_compositor_private(), so stop accessing the realWindow
property of WindowPreview. For this we also have to make _isMyWindow()
and _isOverviewWindow() take a MetaWindow as an argument instead of a
MetaWindowActor.

Since the WorkspacesThumbnails are also drop targets for WindowPreviews
and their WindowClones also have the public metaWindow property, switch
to using the metaWindow property there, too.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1307
js/ui/workspace.js
js/ui/workspaceThumbnail.js